<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>在线监测系统-报表浏览</title>
    <meta name="keywords" content="姿态传感器，在线监测">
    <meta name="description"
          content="XHDL，在线监测系统">

    <link href="{{ url_for('static',filename ='css/test.css') }}" rel="stylesheet">

    <link href="{{ url_for('static',filename ='css/bootstrap.min.css') }}" rel="stylesheet">
    <link href="{{ url_for('static',filename ='font-awesome/font-awesome.css') }}" rel="stylesheet">

    <!-- Morris -->
    <link href="{{ url_for('static',filename ='css/plugins/morris/morris-0.4.3.min.css') }}" rel="stylesheet">

    <!-- Gritter -->
    <link href="{{ url_for('static',filename ='js/plugins/gritter/jquery.gritter.css') }}" rel="stylesheet">

    <link href="{{ url_for('static',filename ='css/animate.css') }}" rel="stylesheet">
    <link href="{{ url_for('static',filename ='css/style.css') }}" rel="stylesheet">

    <link rel="stylesheet" type="text/css"
          href="https://cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.css"/>

    <link href="{{ url_for('static',filename ='css/common.css') }}" rel="stylesheet">

    <link href="{{ url_for('static',filename ='css/reporter.css') }}" rel="stylesheet">

</head>

<body>
<div id="wrapper">
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">
                <li class="nav-hd ">
                    <img src="../static/img/logo.png" alt="">

                </li>
                <li>
                    <a href="{{ url_for('index') }}">
                        <i class="fa fa-th-large"></i>
                        <span class="nav-label">监测主页</span>
                    </a>
                </li>
                <li>
                    <a href="{{ url_for('auth.history') }}"><i class="fa fa-columns"></i> <span
                            class="nav-label">历史曲线</span></a>
                </li>
                <li class="active">
                    <a href="{{ url_for('auth.reporter') }}"><i class="fa fa fa-globe"></i> <span
                            class="nav-label">报表浏览</span></a>
                </li>

                <li>
                    <a href="{{ url_for('auth.equip') }}"><i class="fa fa-bar-chart-o"></i> <span
                            class="nav-label">设备管理</span></a>
                </li>
                <li>
                    <a href="{{ url_for('auth.warning') }}"><i class="fa fa-envelope"></i> <span
                            class="nav-label">预警记录</span><span class="label label-warning pull-right"></span></a>
                </li>
                <li>
                    <a href="{{ url_for('auth.user_manage') }}"><i class="fa fa-envelope"></i> <span
                            class="nav-label">用户管理</span><span class="label label-warning pull-right"></span></a>
                </li>
            </ul>

        </div>
    </nav>


    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="header">
            <div class="row">
                <h1>姿态传感器监测系统</h1>
                <div class="user">
                    <ul>
                        <li>欢迎光临XHDL姿态在线监测系统，<a href="#">去注册</a></li>
                        <li>
                            <img src="../static/img/user.png" alt="">
                        </li>
                        <li>
                            <p>管理员名称</p>
                        </li>
                        <li>
                            <a href="{{ url_for('auth.logout') }}">
                                <i class="fa fa-sign-out"></i> 退出
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="container-fluid">
            <!-- 日期时间范围选择代码 1 start -->
            {#            <h2>Date Range Picker</h2>#}
            {#            <div class="row">#}
            {#                <div class="col-md-6">#}
            {#                    <label for="dateRange">Date Range:</label>#}
            {#                    <div class="input-group">#}
            {#                        <input type="text" class="form-control" id="dateRange"/>#}
            {#                        <span class="input-group-addon"><span#}
            {#                                class="glyphicon glyphicon-calendar"></span></span>#}
            {#                    </div>#}
            {#                </div>#}
            {#                <div class="col-md-6">#}
            {#                    <!-- 显示后端返回的数据 -->#}
            {#                    <div id="dataResult"></div>#}
            {#                </div>#}
            {#            </div>#}
            <!-- 日期时间范围选择代码 1 end -->

            <!-- 日期时间范围选择代码 2 -->

            <div class="row">
                <div class="col-md-6">
                    <div class="date_pick">

                        <label for="datePicker"><span class="fa fa-history"></span> 日期选择：</label>

                        <input type="text" name="datePicker" class="datePicker" id="datePicker" autocomplete="off">

                    </div>
                </div>
                <div class="col-md-6">
                    <div class="date_search">
                        <span class="fa fa-search"> 查询时间：</span>
                        <input type="text" id="inputTime" placeholder="请输入查询时间" autocomplete="off">
                    </div>
                </div>

            </div>

        </div>

        <div class="wrapper wrapper-content">

            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-primary">
                        <div class="panel-heading text-center">
                            <h3>历史报表</h3>
                            <span class="fa fa-download" id="downloadButton"> 报表下载</span>
                        </div>
                        <table class="table table-bordered" id="dataTable">
                            <thead>
                            <tr>
                                <th>id</th>
                                <th>Roll</th>
                                <th>Pitch</th>
                                <th>Yaw</th>
                                <th>时间</th>
                                <!-- 添加其他表格列 -->
                            </tr>
                            </thead>
                            <tbody id="tableBody">
                            <!-- 表格数据将在这里动态生成 -->
                            </tbody>
                        </table>
                        <div class="panel-body">
                            <ul class="pagination page-pos" id="pagination"></ul>
                        </div>


                    </div>
                </div>
            </div>

            {#            <div class="container">#}
            {#                <h2>Date Range Picker</h2>#}
            {#                <div class="row">#}
            {#                    <div class="col-md-6">#}
            {#                        <label for="dateRange">Date Range:</label>#}
            {#                        <div class="input-group">#}
            {#                            <input type="text" class="form-control" id="dateRange"/>#}
            {#                            <span class="input-group-addon"><span#}
            {#                                    class="glyphicon glyphicon-calendar"></span></span>#}
            {#                        </div>#}
            {#                    </div>#}
            {#                    <div class="col-md-6">#}
            {#                        <!-- 显示后端返回的数据 -->#}
            {#                        <div id="dataResult"></div>#}
            {#                    </div>#}
            {#                </div>#}
            {#                <div class="row">#}
            {#                    <input type="date" name="date_select_1" id="date_1">#}
            {#                </div>#}
            {#            </div>#}


            <div class="footer">
                <div class="pull-right">
                    <spand>By:开心</spand>
                </div>
                <div>
                    <strong>Copyright</strong> XHDL &copy; 2023
                </div>
            </div>
        </div>
    </div>
</div>


<!-- Mainly scripts -->
<script src="{{ url_for('static',filename ='js/jquery-2.1.1.min.js') }}"></script>
<script src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<script src="https://cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.js"></script>
<script src="{{ url_for('static',filename ='js/reporter.js') }}"></script>


</body>

</html>
